package xuegao.study.mall.admin.dto.study.exam;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import lombok.Data;
import xuegao.study.mall.admin.config.CustomDateDeserializer;

import java.util.List;

@Data
public class Exam {
    private int id;//试卷ID
    private String name;//试卷名称
    private int totalScore;//试卷总分
    private int timeLimit;//考试时长(分钟)
    private String status;//状态(draft:草稿 published:已发布 archived:已归档)
    private String description;//试卷描述

    @JsonDeserialize(using = CustomDateDeserializer.class)
    private String startTime;//考试开始时间
    @JsonDeserialize(using = CustomDateDeserializer.class)
    private String endTime;//考试结束时间
    private List<ExamQuestion> questions;//对应的题目列表
}
